define(function(require, exports, module){
	var mapTemp = require("text!../template/map.html");
	
	module.exports = Nuui.View.extend({
		
		template:mapTemp,
		
		onRender:function(){
			var view = this;
            /*获取地址*/
            var address = App.storage.get("address");
            var tpl="";
            tpl+='    <iframe class="map" src="http://m.amap.com/navi/?start=&amp;dest=121.392165,31.221389&amp;destName='+address+'&amp;&amp;key=ab48cf564b3b5e805760bdbf1e29b418" frameborder="0">' +
				'</iframe>';
 			view.$("#map").append(tpl);
			//view.$(".map-header").hide()
        },
		
		onShow:function(){

		}
		
	});	
});